<include file="__THEME__/header" />

<link rel="stylesheet" href="../Public/bug.css" type="text/css" media="screen" charset="utf-8" />
<link href="__PUBLIC__/js/pagination/pagination.css" rel="stylesheet" type="text/css" />
<div class="content"><!-- 内容 begin  -->
  <include file="__THEME__/apps" />
  <div class="main"><!-- 画布 begin  -->

    <div class=page_title> <!-- page_title begin -->
                        <h2><img src="{$APPINFO['APP_ICON']}" />{$APPINFO['APP_CNNAME']}</h2>
    <div class="c"></div>
</div><!-- page_title end -->
    <div class="tab-menu"><!-- 切换标签 begin  -->
  	<div class="right mt5">
  		<form method="get" action="__APP__/Index/search">
  		<input type="text" class="TextH20" id="title" onFocus="this.className='Text2'" onBlur="this.className='TextH20'" size="25" name="keywords" value="{$keywords}"/>
		<input type="submit" value="搜索Bug"  class="btn_b"/>
		</form>
	</div>      
      <ul>
        <li><a href="__APP__/Index"><span>全部Bug</span></a></li>
        <li><a href="__APP__/Index/my" ><span>我发布的Bug</span></a></li>
        <li><a href="__APP__/Bug/add" ><span><div class="ico_add">&nbsp;</div>发布新Bug</span></a></li>
        <php>if($isbugadmin){</php><li><a href="__APP__/Index/manage"  class="on" ><span>内部管理</span></a></li><php>}</php>
      </ul>
     
    </div><!-- 切换标签 end  -->
    <div class="BlogBox">
      <div class="MenuSub">
    <php>if(!isset($_GET['state'])){
    	$allclass = 'fB';
    }else{
    	$allclass = 'f';
    }
    </PHP>
	<php>$hasuid =($_GET['uid'])?'uid/'.$_GET['uid'].'/':'';</php>
	      <a href="__APP__/Index/manage/{$hasuid}" class="{$allclass}">所有</a> |
	
	<PHP>foreach(getStateInfo() as $key=>$val){</PHP>
			<php>$class =($key==$_GET['state'] && isset($_GET['state']))?'fB':'f';</php>
		      <a href="__APP__/Index/manage/{$hasuid}state/{$key}" class="{$class}">{$val}</a> |
     <PHP>}</PHP>
      <ul style="float:right;"><li>指派至：<select name="touid" onchange="selectto(this)" >
      											<option value="">--请选择--</option>
		  										<volist id="vo" name="adminlist">
		  										<php>$selected = ($vo==$_GET['uid'])?'selected':''</php>
		  											<option value="{$vo}" {$selected}>{$vo|getUserName}</option>
		  										</volist>
      									</select>
      </li></ul>
      </div>
      <div>
        <div class="sidebar">
        </div>
			<div class="boxL" style="width:100%;"><!-- 好友日志 begin  -->
			  		<div class="box1">
			  			  		
			  		<ul class="newtopic">
			       	  <li>
			            <div class="c3">Bugid</div>
			            <div class="c2">指派人</div>
			            <div class="c1">bug标题</div>
			            <div class="c4">状态</div>
			            <div class="c5">指派时间</div>
						<div class="c"></div>
			       	  </li>
<volist id="vo" name="list">
			          <li>
			            <div class="c3">{$vo.id}</div>
			            <div class="c2"><a href="__TS__/space/{$vo.douid}">{$vo.douid|getUserName}</a></div>
			            <div class="c1"><a href="__APP__/Bug/view/id/{$vo.id}">{$vo.title}</a></div>
			            <div class="c4" style="width:80px;color:{$vo.state|getStateColor};">
			            {$vo.state|getStateInfo}</div>
			            <div class="c5">{$vo.dotime|friendlyDate}</div>
						<div class="c"></div>
			       	  </li>
</volist>
			         
			        </ul>

			    </div>
			       <div class="page">{$html}</div>
			  </div><!-- 好友日志 end  -->
      </div>
    </div>

  </div><!-- 画布 end  -->
  <div class="c"></div>
</div><!-- 内容 end -->
<script>
function selectto(o){
	var state = '{:$_GET["state"]}'
	if($(o).val()){
		location.href='__APP__/Index/manage/uid/'+$(o).val()+'/state/'+state;
	}
}
</script>
<include file="__THEME__/footer" />
